package com.sanjiahantang.youjiaclient.module.programmeprice.beans;

import com.google.gson.Gson;
import com.sanjiahantang.youjiaclient.base.BaseBean;
import com.sanjiahantang.youjiaclient.module.me.address.beans.AddressBean;
import com.sanjiahantang.youjiaclient.module.me.order.beans.CreateOrderPost;

import java.io.Serializable;
import java.util.List;

/**
 * Created by zy on 2017/11/21.
 */

public class ProgramOrderListBean extends BaseBean {
    private String data;

    public Data getData() {
        return new Gson().fromJson(data,Data.class);
    }

    public void setData(String data) {
        this.data = data;
    }

    public static class Data{
        private List<Increase> orderIncreaseList;
        private boolean isPlanAnOrder;
        private Info planInfo;
        private float planPrice;

        public List<Increase> getOrderIncreaseList() {
            return orderIncreaseList;
        }

        public void setOrderIncreaseList(List<Increase> orderIncreaseList) {
            this.orderIncreaseList = orderIncreaseList;
        }

        public boolean isPlanAnOrder() {
            return isPlanAnOrder;
        }

        public void setPlanAnOrder(boolean planAnOrder) {
            isPlanAnOrder = planAnOrder;
        }

        public Info getPlanInfo() {
            return planInfo;
        }

        public void setPlanInfo(Info planInfo) {
            this.planInfo = planInfo;
        }

        public float getPlanPrice() {
            return planPrice;
        }

        public void setPlanPrice(float planPrice) {
            this.planPrice = planPrice;
        }
    }

    public static class Increase{
        private String orderIncreaseCode;
        private String orderIncreaseName;

        public String getOrderIncreaseCode() {
            return orderIncreaseCode;
        }

        public void setOrderIncreaseCode(String orderIncreaseCode) {
            this.orderIncreaseCode = orderIncreaseCode;
        }

        public String getOrderIncreaseName() {
            return orderIncreaseName;
        }

        public void setOrderIncreaseName(String orderIncreaseName) {
            this.orderIncreaseName = orderIncreaseName;
        }
    }

    public static class Info{

        private String createTime;
        private String customerFaPhone;
        private int oiId;
        private String orderCode;
        private List<Order> orderInfoGoodsRaDtoList;
        private CreateOrderPost.OrderInvoiceInfoDtoBean orderInvoiceInfoDto;
        private List<Order> orderServiceRaDtoList;
        private float orderTotalMoney;
        private String payTemplateName;
        private AddressBean.Data userCustomerAddressDto;
        private int userRequireId;

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getCustomerFaPhone() {
            return customerFaPhone;
        }

        public void setCustomerFaPhone(String customerFaPhone) {
            this.customerFaPhone = customerFaPhone;
        }

        public int getOiId() {
            return oiId;
        }

        public void setOiId(int oiId) {
            this.oiId = oiId;
        }

        public String getOrderCode() {
            return orderCode;
        }

        public void setOrderCode(String orderCode) {
            this.orderCode = orderCode;
        }

        public List<Order> getOrderInfoGoodsRaDtoList() {
            return orderInfoGoodsRaDtoList;
        }

        public void setOrderInfoGoodsRaDtoList(List<Order> orderInfoGoodsRaDtoList) {
            this.orderInfoGoodsRaDtoList = orderInfoGoodsRaDtoList;
        }

        public CreateOrderPost.OrderInvoiceInfoDtoBean getOrderInvoiceInfoDto() {
            return orderInvoiceInfoDto;
        }

        public void setOrderInvoiceInfoDto(CreateOrderPost.OrderInvoiceInfoDtoBean orderInvoiceInfoDto) {
            this.orderInvoiceInfoDto = orderInvoiceInfoDto;
        }

        public List<Order> getOrderServiceRaDtoList() {
            return orderServiceRaDtoList;
        }

        public void setOrderServiceRaDtoList(List<Order> orderServiceRaDtoList) {
            this.orderServiceRaDtoList = orderServiceRaDtoList;
        }

        public float getOrderTotalMoney() {
            return orderTotalMoney;
        }

        public void setOrderTotalMoney(float orderTotalMoney) {
            this.orderTotalMoney = orderTotalMoney;
        }

        public String getPayTemplateName() {
            return payTemplateName;
        }

        public void setPayTemplateName(String payTemplateName) {
            this.payTemplateName = payTemplateName;
        }

        public AddressBean.Data getUserCustomerAddressDto() {
            return userCustomerAddressDto;
        }

        public void setUserCustomerAddressDto(AddressBean.Data userCustomerAddressDto) {
            this.userCustomerAddressDto = userCustomerAddressDto;
        }

        public int getUserRequireId() {
            return userRequireId;
        }

        public void setUserRequireId(int userRequireId) {
            this.userRequireId = userRequireId;
        }
    }

    public static class Order{

        private String createTime;
        private List<Goods> goodsInfoDtoList;
        private List<Service> serviceRecordList;
        private int ograId;
        private int oiFaId;
        private String orderCode;
        private int orderType;
        private float payMoney;
        private float payResult;
        private int serviceType;
        private int statusId;
        private String statusName;
        private int userAddressId;
        private String updateTime;

        public float getPayMoney() {
            return payMoney;
        }

        public void setPayMoney(float payMoney) {
            this.payMoney = payMoney;
        }

        public float getPayResult() {
            return payResult;
        }

        public void setPayResult(float payResult) {
            this.payResult = payResult;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public List<Goods> getGoodsInfoDtoList() {
            return goodsInfoDtoList;
        }

        public void setGoodsInfoDtoList(List<Goods> goodsInfoDtoList) {
            this.goodsInfoDtoList = goodsInfoDtoList;
        }

        public List<Service> getServiceRecordList() {
            return serviceRecordList;
        }

        public void setServiceRecordList(List<Service> serviceRecordList) {
            this.serviceRecordList = serviceRecordList;
        }

        public int getOgraId() {
            return ograId;
        }

        public void setOgraId(int ograId) {
            this.ograId = ograId;
        }

        public int getOiFaId() {
            return oiFaId;
        }

        public void setOiFaId(int oiFaId) {
            this.oiFaId = oiFaId;
        }

        public String getOrderCode() {
            return orderCode;
        }

        public void setOrderCode(String orderCode) {
            this.orderCode = orderCode;
        }

        public int getOrderType() {
            return orderType;
        }

        public void setOrderType(int orderType) {
            this.orderType = orderType;
        }



        public int getServiceType() {
            return serviceType;
        }

        public void setServiceType(int serviceType) {
            this.serviceType = serviceType;
        }

        public int getStatusId() {
            return statusId;
        }

        public void setStatusId(int statusId) {
            this.statusId = statusId;
        }

        public String getStatusName() {
            return statusName;
        }

        public void setStatusName(String statusName) {
            this.statusName = statusName;
        }

        public int getUserAddressId() {
            return userAddressId;
        }

        public void setUserAddressId(int userAddressId) {
            this.userAddressId = userAddressId;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }
    }

    public static class Goods{
        private int count;
        private int id;
        private int mgiId;
        private String onePay;
        private int ograFaId;
        private String orderRecordCode;
        private int payCount;
        private float payResult;
        private float price;
        private String recordName;
        private float result;
        private long skuFaId;
        private int statusId;
        private String statusName;
        private String supplyStateId;
        private String supplyStateName;
        private String url;
        private String twoPay;
        private String brandType;
        private String mgpiValue;

        public String getMgpiValue() {
            return mgpiValue;
        }

        public void setMgpiValue(String mgpiValue) {
            this.mgpiValue = mgpiValue;
        }

        public String getBrandType() {
            return brandType;
        }

        public void setBrandType(String brandType) {
            this.brandType = brandType;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getMgiId() {
            return mgiId;
        }

        public void setMgiId(int mgiId) {
            this.mgiId = mgiId;
        }

        public String getOnePay() {
            return onePay;
        }

        public void setOnePay(String onePay) {
            this.onePay = onePay;
        }

        public int getOgraFaId() {
            return ograFaId;
        }

        public void setOgraFaId(int ograFaId) {
            this.ograFaId = ograFaId;
        }

        public String getOrderRecordCode() {
            return orderRecordCode;
        }

        public void setOrderRecordCode(String orderRecordCode) {
            this.orderRecordCode = orderRecordCode;
        }

        public int getPayCount() {
            return payCount;
        }

        public void setPayCount(int payCount) {
            this.payCount = payCount;
        }

        public float getPayResult() {
            return payResult;
        }

        public void setPayResult(float payResult) {
            this.payResult = payResult;
        }

        public float getPrice() {
            return price;
        }

        public void setPrice(float price) {
            this.price = price;
        }

        public String getRecordName() {
            return recordName;
        }

        public void setRecordName(String recordName) {
            this.recordName = recordName;
        }

        public float getResult() {
            return result;
        }

        public void setResult(float result) {
            this.result = result;
        }

        public long getSkuFaId() {
            return skuFaId;
        }

        public void setSkuFaId(long skuFaId) {
            this.skuFaId = skuFaId;
        }

        public int getStatusId() {
            return statusId;
        }

        public void setStatusId(int statusId) {
            this.statusId = statusId;
        }

        public String getStatusName() {
            return statusName;
        }

        public void setStatusName(String statusName) {
            this.statusName = statusName;
        }

        public String getSupplyStateId() {
            return supplyStateId;
        }

        public void setSupplyStateId(String supplyStateId) {
            this.supplyStateId = supplyStateId;
        }

        public String getSupplyStateName() {
            return supplyStateName;
        }

        public void setSupplyStateName(String supplyStateName) {
            this.supplyStateName = supplyStateName;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getTwoPay() {
            return twoPay;
        }

        public void setTwoPay(String twoPay) {
            this.twoPay = twoPay;
        }
    }

    public static class Service implements Serializable{

        private int count;
        private String onePay;
        private String orderRecordCode;
        private String osrRaId;
        private int osraFaId;
        private int payCount;
        private float payResult;
        private int payTemplateCount;
        private float price;
        private float result;
        private String serviceName;
        private long skuFaId;
        private int statusId;
        private String statusName;
        private String threePay;
        private String twoPay;

        public float getPayResult() {
            return payResult;
        }

        public void setPayResult(float payResult) {
            this.payResult = payResult;
        }

        public float getPrice() {
            return price;
        }

        public void setPrice(float price) {
            this.price = price;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public String getOnePay() {
            return onePay;
        }

        public void setOnePay(String onePay) {
            this.onePay = onePay;
        }

        public String getOrderRecordCode() {
            return orderRecordCode;
        }

        public void setOrderRecordCode(String orderRecordCode) {
            this.orderRecordCode = orderRecordCode;
        }

        public String getOsrRaId() {
            return osrRaId;
        }

        public void setOsrRaId(String osrRaId) {
            this.osrRaId = osrRaId;
        }

        public int getOsraFaId() {
            return osraFaId;
        }

        public void setOsraFaId(int osraFaId) {
            this.osraFaId = osraFaId;
        }

        public int getPayCount() {
            return payCount;
        }

        public void setPayCount(int payCount) {
            this.payCount = payCount;
        }



        public int getPayTemplateCount() {
            return payTemplateCount;
        }

        public void setPayTemplateCount(int payTemplateCount) {
            this.payTemplateCount = payTemplateCount;
        }



        public float getResult() {
            return result;
        }

        public void setResult(float result) {
            this.result = result;
        }

        public String getServiceName() {
            return serviceName;
        }

        public void setServiceName(String serviceName) {
            this.serviceName = serviceName;
        }

        public long getSkuFaId() {
            return skuFaId;
        }

        public void setSkuFaId(long skuFaId) {
            this.skuFaId = skuFaId;
        }

        public int getStatusId() {
            return statusId;
        }

        public void setStatusId(int statusId) {
            this.statusId = statusId;
        }

        public String getStatusName() {
            return statusName;
        }

        public void setStatusName(String statusName) {
            this.statusName = statusName;
        }

        public String getThreePay() {
            return threePay;
        }

        public void setThreePay(String threePay) {
            this.threePay = threePay;
        }

        public String getTwoPay() {
            return twoPay;
        }

        public void setTwoPay(String twoPay) {
            this.twoPay = twoPay;
        }
    }
}
